home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
prog_bas
/
nledvb10.zip
/
FORM1.FRM
< prev
next >
Wrap
Text File
|
1996-04-09
|
6KB
|
227 lines
VERSION 4.00
Begin VB.Form Form1
Caption = "LED Test Form"
ClientHeight = 4500
ClientLeft = 1170
ClientTop = 1515
ClientWidth = 6675
Height = 4905
Left = 1110
LinkTopic = "Form1"
ScaleHeight = 4500
ScaleWidth = 6675
Top = 1170
Width = 6795
Begin VB.CommandButton Command2
Caption = "Change"
Height = 375
Left = 5520
TabIndex = 13
Top = 3240
Width = 975
End
Begin VB.TextBox Text2
Height = 285
Left = 3960
TabIndex = 12
Text = "0"
Top = 3240
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "Change"
Height = 375
Left = 5520
TabIndex = 3
Top = 720
Width = 975
End
Begin VB.TextBox Text1
Height = 285
Left = 3960
TabIndex = 2
Text = "0"
Top = 720
Width = 1335
End
Begin NEDLED.LED1 LED15
Height = 255
Left = 240
TabIndex = 11
Top = 4080
Width = 1575
_Version = 65536
_ExtentX = 2778
_ExtentY = 450
_StockProps = 0
ForeColor = 65280
BackColor = 8388608
LeadingZero = 0 'False
DecimalPosition = 5
End
Begin NEDLED.LED1 LED14
Height = 255
Left = 240
TabIndex = 10
Top = 3720
Width = 1575
_Version = 65536
_ExtentX = 2778
_ExtentY = 450
_StockProps = 0
ForeColor = 0
BackColor = 12632256
DecimalPosition = 1
End
Begin NEDLED.LED1 LED13
Height = 255
Left = 240
TabIndex = 9
Top = 3360
Width = 1575
_Version = 65536
_ExtentX = 2778
_ExtentY = 450
_StockProps = 0
DecimalPosition = 2
End
Begin NEDLED.LED1 LED12
Height = 255
Left = 240
TabIndex = 8
Top = 3000
Width = 1575
_Version = 65536
_ExtentX = 2778
_ExtentY = 450
_StockProps = 0
NumPositions = 6
LeadingZero = 0 'False
ShowDecimal = 0 'False
End
Begin VB.Line Line1
X1 = 0
X2 = 6720
Y1 = 2520
Y2 = 2520
End
Begin NEDLED.LED2 LED24
Height = 375
Left = 240
TabIndex = 7
Top = 1080
Width = 3135
_Version = 65536
_ExtentX = 5530
_ExtentY = 661
_StockProps = 0
Value = 0
HighliteColor = 8421504
ShadowColor = 16777215
NumSegments = 15
Direction = 0 'False
RoundSegment = -1 'True
End
Begin NEDLED.LED2 LED23
Height = 2295
Left = 3480
TabIndex = 6
Top = 120
Width = 375
_Version = 65536
_ExtentX = 661
_ExtentY = 4048
_StockProps = 0
Value = 0
LightColor = 16776960
LightColor = 16776960
LightColor = 16776960
LightColor = 8388608
DarkColor = 8388608
LightColor = 8388608
InnerSpace = 2
NumSegments = 13
LEDType = -1 'True
RoundSegment = -1 'True
End
Begin NEDLED.LED2 LED22
Height = 375
Left = 240
TabIndex = 5
Top = 600
Width = 3135
_Version = 65536
_ExtentX = 5530
_ExtentY = 661
_StockProps = 0
Value = 0
End
Begin VB.Label Label1
Caption = "Analog meter range 0 - 100"
Height = 255
Left = 3960
TabIndex = 4
Top = 360
Width = 2295
End
Begin NEDLED.LED2 LED21
Height = 375
Left = 240
TabIndex = 1
Top = 120
Width = 3135
_Version = 65536
_ExtentX = 5530
_ExtentY = 661
_StockProps = 0
Value = 0
LoBound = 3
HiBound = 11
BackColor = 0
HighliteColor = 0
ShadowColor = 0
LightColor = 32768
LightColor = 0
DarkColor = 0
LightColor = 0
NumSegments = 18
End
Begin NEDLED.LED1 LED11
Height = 255
Left = 240
TabIndex = 0
Top = 2640
Width = 1575
_Version = 65536
_ExtentX = 2778
_ExtentY = 450
_StockProps = 0
End
End
Attribute VB_Name = "Form1"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Private Sub VScroll1_Change()
LED21.Value = VScroll1.Value
LED11.Value = VScroll1.Value
End Sub
Private Sub Command1_Click()
LED21.Value = Text1.Text
LED22.Value = Text1.Text
LED23.Value = Text1.Text
LED24.Value = Text1.Text
End Sub
Private Sub Command2_Click()
LED11.Value = Text2.Text
LED12.Value = Text2.Text
LED13.Value = Text2.Text
LED14.Value = Text2.Text
LED15.Value = Text2.Text
End Sub